package com.taptech.doufu.bean;

import java.io.File;
import java.io.Serializable;

import android.graphics.Bitmap;

import com.taptech.doufu.util.ImageManager;

public class ShareBeansInfo implements Serializable {
	/** 文章分享 */
	public static final int AETICLE_SHARE_FLAG = 1;
	/** 分享我们 */
	public static final int OWN_SHARE_FLAG = 2;
	/** 分享图片 */
	public static final int PHOTO_SHARE_FLAG = 9;

	public static final int VIDEO_SHARE_FLAG = 8;

	public static final int PHOTO_SHARE_SHAKE = 1;

	public static final int WOED_SHARE_FlAG = 10;
	
	/**话题*/
	public static final int TOPIC_SHARE_FLAG = 11;
	/**小说*/
	public static final int NOVEL_SHARE_FLAG = 18;
	/**小说*/
	public static final int SWEEP_SHARE_FLAG = 29;

	/**答题分数*/
	public static final int ANSWER_SORCE_SHARE_FLAG = 19;
	/**排行榜*/
	public static final int RANK_SORCE_SHARE_FLAG = 30;
	/**日常*/
	public static final int NOTE_SHARE_FLAG = 41;
	/**漫画*/
	public static final int CARTOON_SHARE_FLAG = 45;

	public static final int BIG_PICTURE = 46; //分享大图

	public String id;
	public String title;
	public String imagUrl;
	public String shareUrl;
	public int dataType = -1;

	public int getDataType() {
		return dataType;
	}

	public void setDataType(int dataType) {
		this.dataType = dataType;
	}

	public String getShareContent() {
		return shareContent;
	}

	public void setShareContent(String shareContent) {
		this.shareContent = shareContent;
	}

	public String shareContent;
	public int flag;
	public String articleAuthor;
	public String shartText;
	public Bitmap bitmap;
	public int photoFlag;
	public int social_type;
	private HomeTopBean shareData;
	private BaseBean shareData2;
	private String description="";
	private NovelBean novelBean;
	private PersonalNoteBean noteBean;
	private String[] tags;

	public boolean isForWeex() {
		return isForWeex;
	}

	public void setForWeex(boolean forWeex) {
		isForWeex = forWeex;
	}

	private boolean isForWeex = false;
	// 第几章节
	private String sectionPositin ;
	// 41日常		42绘画		43COS
	private String object_type;
	
	public ShareBeansInfo() {

	}

	public ShareBeansInfo(String id, String title, String imagUrl,
			String shareUrl, int flag) {
		this.id = id;
		this.title = title;
		this.imagUrl = imagUrl;
		this.shareUrl = shareUrl;
		this.flag = flag;
	}

	public ShareBeansInfo(String id, String title, String imagUrl, int flag) {
		this.id = id;
		this.title = title;
		this.imagUrl = imagUrl;
		this.flag = flag;
	}

	public ShareBeansInfo(String imagUrl, int flag, int photoFlag) {
		this.imagUrl = imagUrl;
		this.flag = flag;
		this.photoFlag = photoFlag;
	}
	public ShareBeansInfo(String shartText,String shareUrl,int falg) {
		this.shartText = shartText;
		this.flag = falg;
		this.shareUrl = shareUrl;
	}


	public ShareBeansInfo(int flag) {
		this.flag = flag;
	}
	
	public int getSocial_type() {
		return social_type;
	}

	public void setSocial_type(int social_type) {
		this.social_type = social_type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImagUrl() {
		return imagUrl;
	}

	public void setImagUrl(String imagUrl) {
		this.imagUrl = imagUrl;
	}

	public String getShareUrl() {
		return shareUrl;
	}

	public void setShareUrl(String shareUrl) {
		this.shareUrl = shareUrl;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getArticleAuthor() {
		return articleAuthor;
	}

	public void setArticleAuthor(String articleAuthor) {
		this.articleAuthor = articleAuthor;
	}

	public String getShartText() {
		return shartText;
	}

	public void setShartText(String shartText) {
		this.shartText = shartText;
	}

	public Bitmap getBitmap() {
		return bitmap;
	}

	public void setBitmap(Bitmap bitmap) {
		this.bitmap = bitmap;
	}

	public File getFile(String url) {
		try {
			return new File(ImageManager.getCacheFilePath(url));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public int getPhotoFlag() {
		return photoFlag;
	}

	public void setPhotoFlag(int photoFlag) {
		this.photoFlag = photoFlag;
	}

	public HomeTopBean getShareData() {
		return shareData;
	}

	public void setShareData(HomeTopBean shareData) {
		this.shareData = shareData;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public NovelBean getNovelBean() {
		return novelBean;
	}

	public void setNovelBean(NovelBean novelBean) {
		this.novelBean = novelBean;
	}

	public PersonalNoteBean getNoteBean() {
		return noteBean;
	}

	public void setNoteBean(PersonalNoteBean noteBean) {
		this.noteBean = noteBean;
	}

	public BaseBean getShareData2() {
		return shareData2;
	}

	public void setShareData2(BaseBean shareData2) {
		this.shareData2 = shareData2;
	}

	public String[] getTags() {
		return tags;
	}

	public void setTags(String[] tags) {
		this.tags = tags;
	}

	public String getObject_type() {
		return object_type;
	}

	public void setObject_type(String object_type) {
		this.object_type = object_type;
	}

	public String getSectionPositin() {
		return sectionPositin;
	}

	public void setSectionPositin(String sectionPositin) {
		this.sectionPositin = sectionPositin;
	}
}
